In this scenario, the app will request to be added to the lock screen, remove itself from the lock screen, and query its current lock screen status.

Lock screen apps are apps that can notify users when the users are not using their device. Lock screen apps are special in that they have permission to run in the background. For example, lock screen apps can run code periodically on a timer every 15 minutes, maintain a TCP socket in the background, or receive push notifications from the Windows Push Notification Service (WNS). Lock screen apps have the ability to show updates to the user on the lock screen by updating badge counts and glyphs, showing toast notifications, or by allowing a text-only version of their Start tile to appear on the lock screen. An app must be granted permission by the user to be a lock screen app.

There are only 7 lock screen slots and an app may request to fill a single one of these. Of these seven apps, one may also take the detailed status slot on the lock screen. If the user declines to give your app permission, you may not prompt again. Apps can query the current state of the setting and may prompt the user a single time to see if they want to allow the app to appear on their lock screen. Subsequent attempts to prompt the user will result in returning the app's current status, without showing any UI to the user.

An app must set the appropriate information in the manifest in order to be background capable. In the Visual Studio manifest editor, under the Lock screen notifications option in the Application UI tab, set the value to either "Badge" or "Badge and Tile Text". Additionally, apps must specify a background task of type "Control channel", "Timer", or "Push notification" in the Declarations tab. For more information, see the "Background Tasks" sample.

Users can manually add the app to the lock screen (or remove it) through the Personalize page in PC Settings, or in the Permissions tab in the app's Settings page. When declared in the manifest as described above, the app will appear in the list of allowable lock screen apps on the Lock screen tab of the Personalize page.